Re: [v8-users] Parsing only select fields of a JSON in v8

2018-04-24 Thread Jakob Kummerow
There is no way to parse only part of a JSON string.

On Tue, Apr 24, 2018 at 3:30 AM Gautham B A 
wrote:

> Hi all,
>
> As per the JSON spec, there's some mention about JSON pointers which says
>
> JSON Pointer defines a string syntax for identifying a specific value
>>within a JavaScript Object Notation (JSON) document.
>>
>>
> https://tools.ietf.org/html/rfc6901
>
> Consider a large JSON { "a" : 1234, "b" : [1, 2, 3, 4] ...}. Now, if we
> want to access the field "a", can we do so without having to parse the
> entire JSON, only parse field "a" and its value?
>
> Currently, we just have v8::JSON::Parse which will parse the entire JSON.
>
> Thanks,
> --Gautham
>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[v8-users] Parsing only select fields of a JSON in v8

2018-04-24 Thread Gautham B A
Hi all,

As per the JSON spec, there's some mention about JSON pointers which says

JSON Pointer defines a string syntax for identifying a specific value
>within a JavaScript Object Notation (JSON) document.
>
>
https://tools.ietf.org/html/rfc6901

Consider a large JSON { "a" : 1234, "b" : [1, 2, 3, 4] ...}. Now, if we 
want to access the field "a", can we do so without having to parse the 
entire JSON, only parse field "a" and its value?

Currently, we just have v8::JSON::Parse which will parse the entire JSON.

Thanks,
--Gautham

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.