pretty printing JSON, returning proper JSON values now