如何在ubuntu中创建json文件 [英] how to create json file in ubuntu

查看:2400
本文介绍了如何在ubuntu中创建json文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





有人可以帮我解决以下问题,



a。如何在ubuntu中创建一个json文件,用于保存json文件的扩展名是什么

b.does必须包含任何头文件或包

c.how我使用json使用C编程从MySQL获取数据

d.standard程序编译json

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

推荐答案

Quote:

a。如何在ubuntu中创建一个json文件,用于保存json文件的扩展名是什么

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



JSON是一个标准用于将对象作为普通可读文本传递。与XML类似。文件扩展名可以是json,但不一定是因为它只是文本(取决于你如何使用它以及你使用的软件是否在.json扩展名和解析器之间有一些关联)。


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必须包含任何头文件或包

b.does any header file or package has to be included



不要制作JSON文件,但你可能需要用东西来解析JSON中的内容。


Not to make a JSON file, but you likely need something to parse things in/out of JSON.

引用:

c。我是否使用json使用C编程从MySQL获取数据

c.how do i use json to get data from MySQL using C programming



不确定JSON和MySQL之间是否存在直接关系。 MySQL有它自己的调用。可能有软件连接这两个,但它们之间没有直接的链接。


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在json的编译中

d.standard procedure in compilation of json



同样,JSON只是用于交换对象数据的文本格式。就像你无法编译XML一样,你无法编译JSON。


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


这篇关于如何在ubuntu中创建json文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆