You can read more about JSON from json.org.
你可以在json.org了解到更多有关JSON的内容。
This is the same json library available from json.org.
这与json.org上的json库是相同的。
So a /photos.json will call the index method with all the data serialized as JSON.
所以,/photos.json将用序列化为 JSON的数据调用索引方法。
You only need to use the json_encode function to turn the returned array into json code.
您只需使用json_encode函数来将已返回的数组转变为json代码。
JSON is built on two structures.
JSON构建在两个结构之上。
Building a basic JSON controller.
构建一个基本JSON控制器。
我们先来看看JSON。
To return a serialized JSON object.
要返回一个序列化的JSON对象。
Converts an object to a JSON string.
将对象转换为JSON字符串。
Define the attributes in a JSON file.
在JSON文件中定义属性。
Figure 3 shows the JSON result of this.
图3显示了这个请求的JSON结果。
Notice that you are sending back JSON code.
注意,您发回的是JSON代码。
They both use JSON as their exchange format.
它们都是用JSON作为它们的交换格式。
Step 1: Define the REST URIs in a JSON file.
第 1步:在JSON文件中定义RESTURI。
Axis2 for instance, now has support for JSON.
比如axis2已经支持JSON。
Next, the body of the post should be JSON data.
其次,post的主体应该是JSON数据。
Here is the output when you click the JSON button.
这就是点击JSON按钮之后的效果。
A response is then sent in JSON indicating success.
然后用JSON发送一个表示成功的响应。
JSON can represent lists, which can also be values.
JSON可以表示列表,其也可以是值。
Then you can easily access the JSON object's members.
接下来您可轻松访问JSON对象成员。
Get the target form field value from the JSON object.
从JSON对象获得目标表单字段值。
It then formats the result as JSON if it's successful.
如果成功,它将结果格式化为json。
Listing 4 is a simple example of a block of JSON data.
清单4是一个JSON数据块的简单示例。
First up we'll need to be able to parse JSON from Ruby.
首先我们需要能在Ruby中解析json。
Many services also support JSON, another popular format.
很多服务还支持另一个流行格式json。
Listing 1 is an example JSON object representing a site.
清单1是一个表示某个站点的示例JSON对象。
This is an easy way to get your data serialized in JSON.
这是一个简单的以json格式序列化数据的方法。
Now that I'm generating JSON, it's time to put it to use.
现在生成了JSON,是时候使用它了。
The last approach USES JSON to avoid the need for proxies.
最后一种办法使用JSON避免了通过代理的需要。
You can take several approaches to secure the use of JSON.
可以采取一些方法来保护JSON的使用。
应用推荐