Improves json result response.
Updated