Processes (edits) json using a javascript function and shows the resulting json