Added optional extra JSON data to query results