Sample for creating custom JSON returns.