get-if-has-json

Extract JSON from a string that contains a bunch of crap before or after a valid JSON Object.

Browse on unpkg