tanszek:oktatas:techcomm:syntax_graphs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tanszek:oktatas:techcomm:syntax_graphs [2024/10/07 16:46] – knehez | tanszek:oktatas:techcomm:syntax_graphs [2024/11/18 20:19] (current) – knehez | ||
---|---|---|---|
Line 22: | Line 22: | ||
This shows how graphical representations can help understand and construct syntactically correct structures in programming languages. | This shows how graphical representations can help understand and construct syntactically correct structures in programming languages. | ||
+ | |||
+ | === 2. Example: Syntax Graph of the JSON (JavaScript Object Notation) Data Exchange Format with Examples === | ||
+ | |||
+ | The JSON format is very important in modern information technology. By looking at examples and the syntax graph, we can understand its structure. | ||
+ | |||
+ | === Simple JSON Data === | ||
+ | |||
+ | <sxh json> | ||
+ | { | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | This is an object that contains **name-value pairs** or **arrays**, combined in various ways. For example: | ||
+ | |||
+ | <sxh json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | This example shows how JSON can be used to structure objects, where properties have values and methods. The syntax graph helps visualize the relationships between objects, arrays, and values. | ||
+ | |||
+ | JSON object: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | JSON array: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | JSON types: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | JSON string: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | JSON number: | ||
+ | |||
+ | For example: '' | ||
+ | |||
+ | {{: |
tanszek/oktatas/techcomm/syntax_graphs.1728319579.txt.gz · Last modified: 2024/10/07 16:46 by knehez