Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Could somebody help me with the below questions,

a.How to create a json file in ubuntu and what is the extension used to save json file
b.does any header file or package has to be included
c.how do i use json to get data from MySQL using C programming
d.standard procedure in compilation of json
Posted
Updated 6-Nov-14 2:26am
v2
Comments
Mehdi Gholam 6-Nov-14 9:35am    
json is a text format, you can create it with any text editor.

1 solution

Quote:
a.How to create a json file in ubuntu and what is the extension used to save json file

JSON is a standard for passing objects as plain, readable text. Similar to XML. The file extension can be json but doesn't have to be since it's just text (depends on how you're using it and whether the software you're using has some associate between a .json extension and a parser).
Quote:
b.does any header file or package has to be included

Not to make a JSON file, but you likely need something to parse things in/out of JSON.
Quote:
c.how do i use json to get data from MySQL using C programming

Not sure there's a direct between JSON and MySQL. MySQL has it's own calls. There may be software that interfaces the two but there's no direct link between them.
Quote:
d.standard procedure in compilation of json

Again, JSON is just a text format for exchanging object data. Just like you can't compile XML, you can't compile JSON.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900