Fixed an issue with the JSON serialization of results.