Transform JSON to 4DCode.
$codeString:=JSONToCode($jsonString)
A macro MacroJSONToCode will convert your selected JSON text in your method editor, comment it, and paste the code.
If no selection, the pasteboard content will be used.
A component web server provide a page to edit your JSON and see the code immediatly
You could open this component and open the default URL http://localhost:8702
Or start the server yourself from a host database using JSONToCodeWebServer
💡 If you have javascript instead of JSON, you can use online service such as convertonline.io before or use mesopotamia
Just call PBJSONToCode and your pasteboard content will be converted
Generate classes files with JSON data parsing
- JSON Editor for web server
- Code syntax highlighting by highlightjs with 4d addon
- "Special Paste" in component full of macros 4DPop-Macros