Invalid JSON in API response

Invalid JSON in API response

Every API action that returns field "criteria" (EXPORT, FETCH), returns it like this: "(\"Id\"=\'id_2\')", which is invalid. Here's a full response that fails JSON validation:

  1. {
  2.         "response":
  3.         {
  4.                 "uri":"....",
  5.                 "action":"EXPORT",
  6.                 "criteria":"(\"Id\"=\'id_2\')",
  7.                 "result":
  8.                 {
  9.                         "column_order":["Id","table1field1","table1field2","table1field3"],
  10.                                 "rows":[
  11.                                         ["id_2","table1field1 0.8437630341483484","table1field2 0.42889064981418046","table1field3 0.7589037187475842"]
  12.                                         ]
  13.                 }
  14.         }
  15. }