Parsing multiple json strings in a buffer

If you are asking a question, please follow this template:

  1. My goal is: [describe your goal]
    To json parse a buffer containing 1 or more valid json formatted strings.

  2. My actions are: [describe your actions - code, commands, etc]

  3. The result I see is: [show the result - log, etc]
    Invalid json

  4. My expectation & question is: [describe your expectation and your question]
    I have multiple json messages in a buffer. I would like a simple method of pulling the individual messages from the buffer and parsing them using mjs or c. Is there a simple way to do this?

Call json_walk repeatedly until you exhaust the buffer or json_walk fails.