Search from various English teachers...
China flagCrystal_zhou
study Gson hello everybody! I'm studing programming language of java recently ,following is what I'm reading now! Hoping someone can help me to correct some mistakes in my translation article,thanks vevry much! (English to chinese) source text: Gson is a Java library that can be used to convert Java Objects into their JSON representation. (my translation : Gson是一门可以用来将Java对象转换为JSON表示法的Java图库) It can also be used to convert open-source project hosted at http://code.google.com/p/google-gson (my translation :它也可以用来在http://code.google.com/p/google-gson 这个网址上 做开源工程) Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of. (my translation :Gson可以和任意的Java对象配合使用,包括那些先已经存在的而你又没有源代码的对象) Goals for Gson (Gson目标) *Provide easy to use mechanisms like toString() and constructor (factory method) to convert Java to JSON and vic... (给比如使用toString()和constructor(工厂方法?)这些机制转换为JavaJson提供方便) *Allow pre-existing unmodifiable objects to be converted to and from JSON (允许之前存在的没法改变的对象可以通过JSON被转化) *Allow custom representations for objects (允许为对象做定制表述) *Support arbitrarily complex object (支持任意复合对象) *Generate compact and readability JSON output (使JSON输出简洁和易读)

Corrections · 1

0

study Gson

hello everybody! I'm studing programming language of java recently ,following is what I'm reading now! Hoping someone can help me to correct some mistakes in my translation article,thanks vevry much! (English to chinese)

source text: Gson is a Java library that can be used to convert Java Objects into their JSON representation.
(my translation : Gson是一门可以用来将Java对象转换为JSON表示法的Java图库)

Gson是一个Java函式库,能将Java物件转换成JSON格式。


It can also be used to convert open-source project hosted at http://code.google.com/p/google-gson
(my translation :它也可以用来在http://code.google.com/p/google-gson
这个网址上 做开源工程)


Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of.
(my translation :Gson可以和任意的Java对象配合使用,包括那些先已经存在的而你又没有源代码的对象)

Gson可以用於任何Java物件,包括那些先前已经存在而没有源代码的物件


Goals for Gson
(Gson目标)

*Provide easy to use mechanisms like toString() and constructor (factory method) to convert Java to JSON and vic...
(给比如使用toString()和constructor(工厂方法?)这些机制转换为JavaJson提供方便)

提供toString()和constructor (factory method)等方便使用的机制来将Java物件转换为JSON


*Allow pre-existing unmodifiable objects to be converted to and from JSON
(允许之前存在的没法改变的对象可以通过JSON被转化)

允许先存无法修改的物件和JSON互相转换

*Allow custom representations for objects
(允许为对象做定制表述)

允许自订物件输出格式

*Support arbitrarily complex object 

(支持任意复合对象)

支援任意复合物件

*Generate compact and readability JSON output
(使JSON输出简洁和易读)


Want to progress faster?

Join this learning community and try out free exercises!

Don’t miss out on the opportunity to learn a language from the comfort of your own home. Browse our selection of experienced language tutors and enroll in your first lesson now!

Start Learning Today