Colon in JSON String

Is it possible to avoid the colon: inside a JSON string? This object / value is currently set

{ pn: "MT46H128M16LFCK-5 IT:A", 
  visible: false, 
  url: "/$ws$/29/1/products/ProductDetails.html?product=products/dram/MT46H128M16LFCK-5 IT" 
}

not readable. I suspect this because of the :Ameaning pn. How can I avoid this or otherwise capture it?

+3
source share
1 answer

If your actual JSON, your problem is that identifiers (pn, visible, url) should be specified ("pn", "visible", "url").

As the comment says, colons should not be escaped in JSON string literals.

+3
source

Source: https://habr.com/ru/post/1751820/


All Articles