Skip to content

mesopelagique/JSONToCode

Repository files navigation

JSONToCode

language language-top code-size release license discord

Transform JSON to 4DCode.

Usage

$codeString:=JSONToCode($jsonString)

JSONToCode

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

preview

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

JSONToClasses

Acknowledgment

Alternatives


mesopelagique