乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 64|回复: 0

[编程交流] json_encode json_decode

[复制链接]

15

主题

315

帖子

361

银币

初来乍到

Rank: 1

铜币
25
发表于 2022-7-5 19:58:26 | 显示全部楼层 |阅读模式
Hi,
 
Does anybody have json_encode and json_decode functions?
 
Today I use a lisp-type-notation, or csv, to communicate between Autocad and data files.
 
But JSON really is superior.  It's compact, and can be read directly by php/javascript, so you can link this data to databases, to websites, ...
Also, it's quite human-readable  (well ... it's programmer-readable  )
 
----
In JSON:
- this is an object: {}
- this is an array: []
example of a JSON string (a list of classmates):
 
[{name:"Johny",age:15,classes:["math","geography","English"]},{name:"Freddy",age:16,classes:["math","history","archeology"]},{name:"Susan",age:16,classes:["physics","biology"]}]
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-8-18 22:40 , Processed in 2.516859 second(s), 55 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表