Added header to json data format
Parses header and data