Skip to content

Instantly share code, notes, and snippets.

@thonerohh
Created March 18, 2024 16:00
Show Gist options
  • Save thonerohh/7aae07a5ab69174eec4750f3fc6d14fc to your computer and use it in GitHub Desktop.
Save thonerohh/7aae07a5ab69174eec4750f3fc6d14fc to your computer and use it in GitHub Desktop.
Some crazy form of categorisation JSON
I think that "type" vs. "types" as array or object is cool way to redefine structured data.
Version 003 of structured data
{
"object":{
"connects": [587783544,121825812,124818512,12589185,28501859],
"connect": "587783544",
"contents": {
"services": [
{
"id":1,
"names":{
"titles": {
"name": "service",
"format": "online",
"types":{
"format": "version",
"step": 3,
"value": "001"
},
"type": "version 0.0.1"
},
"title": "Service, Online",
"prices": {
"value": 1000,
"type": "USD",
"coefficient": 1.01
},
"price": "1000 USD -1.01%",
"subtitle": "Service 1 subtitle"
},
"description":"Service 1 description",
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment