Skip to content

Instantly share code, notes, and snippets.

View TheCompez's full-sized avatar
🎯
Focusing on my engine!

C O M P Ξ Z TheCompez

🎯
Focusing on my engine!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am KambizaAadzadeh on github.
  • I am KambizAsadzadeh (https://keybase.io/kambizasadzadeh) on keybase.
  • I have a public key ASCACC5olC9iakHXhYPzCaWDzo37zAUp5sHB_kas3pEO5wo

To claim this, I am signing this object:

@TheCompez
TheCompez / JavaScript Version
Last active September 3, 2020 11:14
JSON example in QML
let myData = [{
id: 1,
name: "Kambiz",
family: "Asadzadeh"
},
{
id: 2,
name: "Sorush",
family: "Rabiei"
},
@TheCompez
TheCompez / data.json
Last active September 1, 2023 17:33
How to parse JSON inside C++ and QML
{
"model": [
{
"id": 1,
"name": "Kambiz",
"family": "Asadzadeh"
},
{
"id": 2,
"name": "Hamed",
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: true
AlignEscapedNewlinesLeft: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
import QtQuick
Window {
width: 640
height: 480
visible: true
title: qsTr("Hello World")
function jsonApiRequest() {
var xhr = new XMLHttpRequest();