Thursday, 15 May 2014

java - Regex To Extract An Object From A JSON String -



java - Regex To Extract An Object From A JSON String -

i have json string extract field using regex. field can object, array, string, int or type. know other way looping through keys in json , finding it. know, can achieved using regex or not. help great.

this can achieved using regex or not

not reasonably, no, because regular expressions not well-suited interpreting structures json on own; html, want proper parser.

instead, utilize of several java libraries parsing json , traversing content; there's list of them @ bottom of the json site (i see gson used lot, there lots of options).

java regex json string

No comments:

Post a Comment