[misc] Added support for additional metadata in JSON responses