# \#cjson

**URL:** https://clarionhub.com/tag/cjson/222.md

[Latest](https://clarionhub.com/latest.md) · [Categories](https://clarionhub.com/categories.md) · [Tags](https://clarionhub.com/tags.md)

---

## [How do I generate a json conditionally?](https://clarionhub.com/t/how-do-i-generate-a-json-conditionally/7339)

<div class="topic-metadata">

**Author:** [@carlos.pizzi](https://clarionhub.com/u/carlos.pizzi)\
**Replies:** 2\
**Last updated:** [July 24, 2024, 1:05pm UTC](https://clarionhub.com/t/how-do-i-generate-a-json-conditionally/7339 "2024-07-24T13:05:40Z")

</div>

Hello everyone!! I'm using the cJSON for Clarion parser from Mike Duglas GitHub. I ask you about how to add an array in the "Items" conditionally. In the example json the first item "TEST-ITM-1" has an array "external…

---

## [I can't get the json done correctly (jSON Class)](https://clarionhub.com/t/i-cant-get-the-json-done-correctly-json-class/7258)

<div class="topic-metadata">

**Author:** [@carlos.pizzi](https://clarionhub.com/u/carlos.pizzi)\
**Replies:** 5\
**Last updated:** [June 20, 2024, 10:35pm UTC](https://clarionhub.com/t/i-cant-get-the-json-done-correctly-json-class/7258 "2024-06-20T22:35:13Z")

</div>

Hello everyone !!! I need to generate the following json: \[{ "id": "A001", "codigoAlternativo": "A001", "unidadMedida": "Unidad", "descripcion": "Galletita", "idDepartamento": 1,…

---

## [I can't parse the json with the cJson class. Do I have the group well defined?](https://clarionhub.com/t/i-cant-parse-the-json-with-the-cjson-class-do-i-have-the-group-well-defined/6851)

<div class="topic-metadata">

**Author:** [@carlos.pizzi](https://clarionhub.com/u/carlos.pizzi)\
**Replies:** 4\
**Last updated:** [December 15, 2023, 2:44pm UTC](https://clarionhub.com/t/i-cant-parse-the-json-with-the-cjson-class-do-i-have-the-group-well-defined/6851 "2023-12-15T14:44:00Z")

</div>

Good night, I am trying to obtain the values of the json that I indicate, but for some fields I do not get the result, such as: ns2:dProtConsLote or ns2:dCodRes Where is my mistake. Do I have the group well defined? I…

---

## [How do I parse a JSON string with embedded arrays using cJSON](https://clarionhub.com/t/how-do-i-parse-a-json-string-with-embedded-arrays-using-cjson/4186)

<div class="topic-metadata">

**Author:** [@Graham\_Dawson](https://clarionhub.com/u/Graham_Dawson)\
**Replies:** 3\
**Last updated:** [May 29, 2021, 3:22pm UTC](https://clarionhub.com/t/how-do-i-parse-a-json-string-with-embedded-arrays-using-cjson/4186 "2021-05-29T15:22:18Z")

</div>

If I have a JSON string with an embedded array like this... testJSON string('{{"Result":\[' & | '{{"resourceskill":\["Joiner","Plumber","Electrician"\],"starttime":"2021-06-25 08:05"},' & | '{{"resourceskill"…
