Convert decoded data to a JSON object