recentpopularlog in


« earlier   
bluzi/jsonstore: Store your data for free by sending simple HTTP requests
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.
storage  cloud  json 
1 hour ago by zchi
Querying JSON with JSONPath
JObject o = JObject.Parse(@"{
'Stores': [
'Lambton Quay',
'Willis Street'
'Manufacturers': [
'Name': 'Acme Co',
'Products': [
'Name': 'Anvil',
'Price': 50
'Name': 'Contoso',
'Products': [
'Name': 'Elbow Grease',
'Price': 99.95
'Name': 'Headlight Fluid',
'Price': 4

// manufacturer with the name 'Acme Co'
JToken acme = o.SelectToken("$.Manufacturers[?(@.Name == 'Acme Co')]");

// { "Name": "Acme Co", Products: [{ "Name": "Anvil", "Price": 50 }] }

// name of all products priced 50 and above
IEnumerable<JToken> pricyProducts = o.SelectTokens("$..Products[?(@.Price >= 50)].Name");

foreach (JToken item in pricyProducts)
// Anvil
// Elbow Grease
json  path  dev  webdev 
8 hours ago by drawkbox - Parsing JSON is a Minefield 💣
2016-2018, by Nicolas Seriot,

"SON is the de facto standard when it comes to (un)serialising and exchanging data in web and mobile programming. But how well do you really know JSON? We'll read the specifications and write test cases together. We'll test common JSON libraries against our test cases. I'll show that JSON is not the easy, idealised format as many do believe. Indeed, I did not find two libraries that exhibit the very same behaviour. Moreover, I found that edge cases and maliciously crafted payloads can cause bugs, crashes and denial of services, mainly because JSON libraries rely on specifications that have evolved over time and that left many details loosely specified or not specified at all."
json  standard  parsing  javascript  knowledge  reference  research 
yesterday by eric.brechemier

Copy this bookmark:

to read