For GUID type in JSON, do we need double quote like
"Id": "9903ED01-A73C-4874-8ABF-D2678E3AE23D"
or just like
"Id" : 9903ED01-A73C-4874-8ABF-D2678E3AE23D
Each key-value pair is separated by a comma, so the middle of a JSON lists as follows: "key" : "value", "key" : "value", "key": "value" . In the previous example, the first key-value pair is "first_name" : "Sammy" . JSON keys are on the left side of the colon.
A JSON object contains zero, one, or more key-value pairs, also called properties. The object is surrounded by curly braces {} . Every key-value pair is separated by a comma.
Keys must be strings, and values must be a valid JSON data type: string.
Arrays in JSON are almost the same as arrays in JavaScript. In JSON, array values must be of type string, number, object, array, boolean or null. In JavaScript, array values can be all of the above, plus any other valid JavaScript expression, including functions, dates, and undefined.
There is no such thing as a 'GUID Type.'
You need to put it in quotes. A GUID is just a string, and string need quotes.
All of the types are listed here on the JSON website. (Look on the right side)
Guid Should be passed with quotes
"Id" : "9903ED01-A73C-4874-8ABF-D2678E3AE23D"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With