Closed leeor closed 4 years ago
Puppeteer docs describe jsonValue() as returning a JSON representation of the object. In some cases the object is simply a string (such as getting a property as the test case does), for these cases, using a Js.Json.t return type is more robust.
Good call. Js.Json.t is definitely an improvement here. Thank you so much for contributing!
Puppeteer docs describe jsonValue() as returning a JSON representation of the object. In some cases the object is simply a string (such as getting a property as the test case does), for these cases, using a Js.Json.t return type is more robust.