|
|
第1行: |
第1行: |
| 3.1.2
| | 1) 仅使用JDK, 不依赖任何第三方的包,完成JSON的parse和format. |
|
| |
|
| * [[#Escape Character|Escape Character]]: How to remove the special meaning from a single character.
| | 2) 对于JSON的parse/format, 需要支持基于流的输入和输出。即从一个文件解析出一个JSON对象, 以及把一个JSON对象输出到文件。 |
| * [[#Single Quotes|Single Quotes]]: How to inhibit all interpretation of a sequence of characters.
| |
| * [[#Double Quotes|Double Quotes]]: How to suppress most of the interpretation of a sequence of characters.
| |
| * [[#ANSI-C Quoting|Double Quotes]]: How to expand ANSI-C sequences in quoted strings.
| |
| * [[#Locale Translation|Locale Translation]]: How to translate strings into different languages.
| |
|
| |
|
| Quoting is used to remove the special meaning of certain characters or words to the shell. Quoting can be used to disable special treatment for special characters, to prevent reserved words from being recognized as such, and to prevent parameter expansion.
| | 3) 考虑对于一个大型JSON对象, 比如文件超过500M, 在基于流的解析和格式化时,如何减少内存消耗并提高性能。 |
|
| |
|
| Each of the shell metacharacters (see [[#Definitions|Definitions]]) has special meaning to the shell and must be quoted if it is to represent itself. When the command history expansion facilities are being used (see [[#History Interaction|History Interaction]]), the history expansion character, usually ‘!’, must be quoted to prevent history expansion. See [[#Bash History Facilities|Bash History Facilities]], for more details concerning history expansion.
| | 4) 性能方面, 和业界最快的实现FastJSON,进行比较。 |
|
| |
|
| There are three quoting mechanisms: the escape character, single quotes, and double quotes.
| | 5) 设计文档 |
2016年11月3日 (四) 18:01的版本
1) 仅使用JDK, 不依赖任何第三方的包,完成JSON的parse和format.
2) 对于JSON的parse/format, 需要支持基于流的输入和输出。即从一个文件解析出一个JSON对象, 以及把一个JSON对象输出到文件。
3) 考虑对于一个大型JSON对象, 比如文件超过500M, 在基于流的解析和格式化时,如何减少内存消耗并提高性能。
4) 性能方面, 和业界最快的实现FastJSON,进行比较。
5) 设计文档