Wednesday, 14 August 2013

Strange JSON.Stringify() Behaviour

Strange JSON.Stringify() Behaviour

I'm not sure if this is strange behaviour or I am doing something wrong
bur check this out -
{
"query": {
"bool" : {
"should" : {
"match" : { "pty_forename" : "nathan" }
},
"should" : {
"match" : { "pty_surname" : "smith" }
}
}
}
}
Copy and paste that into JSONLint and see what happens, the exact same
thing happens whenever I try to parse this with JSON.Stringify().
What am I doing wrong, can anyone offer some insight?
Thanks.

No comments:

Post a Comment