Return JSON object instead of a primitive