JSONToCode
Transform JSON to 4DCode.
Usage
$codeString:=JSONToCode($jsonString)
Utilities
Macro
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.
WebServer
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
Pasteboard
Just call PBJSONToCode and your pasteboard content will be converted
🚧 Convert JSON to class definition
Generate classes files with JSON data parsing
Acknowledgment
- JSON Editor for web server
- Code syntax highlighting by highlightjs with 4d addon
Alternatives
- “Special Paste” in component full of macros 4DPop-Macros