js content type json code example Example 1: content type json application/json Example 2: http content type json application/json