add feature for json lib and add some json samples

add feature for json lib and add some json samples