Quote from
Gaev on February 24, 2021, 10:43 pm
@pauljonestindall
I need to be able to sift out information from a JSON file and I don't really want to do a lot of StrParses and SearchStrs and SubStrs.
Anyone have any suggestions or thoughts?
Javascript can extract values for specific keys quite easily ... so you can do it by Call'ing a Function built with Javascript ... or invoke some Javascript in an HTML page within a (hidden) WebBrowser Tool
However, it is very complicated to build a generic function, because JSON objects can be nested (and include arrays) e.g. arrays of JSON objects, where some of the JSON objects can have key values that are arrays themselves !
Are you able to provide a JSON object (stringify'ed string) ... and the specific keys for which the values are to be extracted/returned ?
@pauljonestindall
I need to be able to sift out information from a JSON file and I don't really want to do a lot of StrParses and SearchStrs and SubStrs.
Anyone have any suggestions or thoughts?
Javascript can extract values for specific keys quite easily ... so you can do it by Call'ing a Function built with Javascript ... or invoke some Javascript in an HTML page within a (hidden) WebBrowser Tool
However, it is very complicated to build a generic function, because JSON objects can be nested (and include arrays) e.g. arrays of JSON objects, where some of the JSON objects can have key values that are arrays themselves !
Are you able to provide a JSON object (stringify'ed string) ... and the specific keys for which the values are to be extracted/returned ?