I need help for js_of_ocaml to work. There is not much information about this on the net, and the manual is very rare (without fragments or examples of use, without comments).
I have a Card module on a server with a Card entry. I send the card list client using Ajax, and there I want to read and go through this list. As a result, I get the following:
let json = Json.unsafe_input (Js.string http_frame.XmlHttpRequest.content) in
... where json is of type 'a , as per the documentation (not when I run it, of course).
I can write json##length and get the correct list length. Where am I going from here? Ideally, I would like to use Deriving_Json for safe input like card list , but I could also use a for loop (not so elegant, but any).
source share