added json header to api output