Languages

Menu
Sites
Language
i want to convent struct to json( struct 를 바탕으로 json을 만드려고 합니다 )

typedef struct {
 appdata_s *ad;
 double gyrox;
 double gyroy;
 double gyroz;
}data;

data *idata;

 

size(data) = 60

i want to convent struct to json 

 

View Selected Answer

Responses

2 Replies
Mark as answer
Yasin Ali

Hi,

As far as I know Json-glib is a library for serializing and deserializing Javascript Object Notation (JSON) using

Glib and Gobject data types that is compatible with Tizen.

You may use it. See links below for details:

https://developer.tizen.org/community/tip-tech/native-application-dev-tip-tutorial-json-parser

https://developer.tizen.org/development/api-references/native-application?redirect=/dev-guide/2.4/org.tizen.native.mobile.apireference/group__OPENSRC__JSONGLIB__FRAMEWORK.html

Hope it will help.

GEUNSOO KIM

I cannot sure what is  you understanding about JSON.

if you want create a JSON string in native C, you can use json-glib library functions.

json-glib is already included in tizen platform, so you can use it to parse/compose json string.