Bugfix: Serialize json objects to output
GH-2 bugfix: get json objects synchrously for comparison
GH-2 Adding profiler code