Query JSON String
Posted
by Theofanis Pantelides
on Stack Overflow
See other posts from Stack Overflow
or by Theofanis Pantelides
Published on 2010-04-12T14:47:44Z
Indexed on
2010/04/12
14:53 UTC
Read the original article
Hit count: 424
Hi,
Is there a way to query a JSON (String) for a specific item?
ie:
String jSon = "{\"a\":{\"b\":27472483,\"c\":\"123\"}}";
such that:
Int32 bob = (Int32)getFromJSON("a.b", jSon);
// bob == 27472483
Thank you, -Theo
© Stack Overflow or respective owner