Given a highly nested JSON object representing user data, write a function to flatten it into a single-level dictionary.