Rewrite JSON creation method

Allows the app to read in and parse the JSONObjects passed to it.