Parse Json + PDF monkey

:bullseye: What is your goal?

My goal is to generate a PDF quote with PDF MONKEY using AI and JSON parsing

:thinking: What is the problem & what have you tried?

I don’t really know what I need to change. I tried without quotes, with a comma… When I run the module alone, no error, but when I run the entire scenario, an error.

:clipboard: Error messages or input/output bundles

RuntimeError
[422] ⨀ payload: unexpected character (after lignes) at line 18, column 17 [parse.c:904]

:link: Create public scenario page

Is it possible that the data that populates there has any characters that could cause issues?

Hello,

Could you please check the URL? It doesn’t seem to be working.

If you run the module on its own and everything works fine, there is a high chance that the content contains characters that need to be escaped.

You can either use the built-in JSON modules or add a chain of replace() functions to create valid JSON body.

This thread explains possible methods:

1 Like