If I had a JSON file that had multiple objects, can the method read through without some form of exception?
It looks like the implementation of
JSON::parse looks like a fairly generic JSON parsing routine, but it does expect the top-level of the JSON fed to it to be a single value (since defers, once, to
Thus, it looks like you can provide it JSON containing multiple objects within a top-level array or structure. But if you provide it a string that happens to contain two independent sets of JSON, it will only parse the first one.