Properly returning JSON for hReader applet.