Extract JSON-like data as dicts

Add pretty-printer helper