Open sPyOpenSource opened 1 year ago
{
language: Java,
modifier: public,
type: class,
name: HelloWord,
function: {
modifier: [public, static],
return: void,
name: main,
arguments: {
name: args,
type: String[]
}
body: System.out.println(“Hello, world!);
}
}
{
language: Python,
body: print(“Hello, world!”)
}
{
language: Rust,
function: {
name: main,
body: println!("Hello, World!");
}
}
{
language: C,
include: stdio.h,
function: {
return: int,
name: main,
arguments: void,
body: [printf("Hello, World!\n");, return 0;]
}
}
JSON syntax rules are simple and consistent. Data is in name/value pairs, separated by commas. Curly braces hold objects, and square brackets hold arrays. Strings are in double quotes, and numbers are without quotes. Booleans are represented by true or false, and nulls are represented by null. Whitespace can be inserted between any tokens to improve readability