Returning json from processViaJSON