var searchIndex = {}; searchIndex["strason"] = {"doc":"# Strason -- Stringly-Typed JSON parser and serializer for Rust","items":[[3,"Json","strason","A "stringly-typed" Json object. That is, either a value (represented\nas a String), or an object (represented as a map from Strings to Jsons).",null,null],[0,"parser","","# Parsing support",null,null],[3,"Error","strason::parser","A Json parsing error",null,null],[3,"Parser","","A structure capable of parsing binary ASCII data into a "JSON object",\nwhich is simply a tree of strings. Further parsing should be done by\nother layers.",null,null],[4,"ErrorType","","The type of a Json parsing error",null,null],[13,"ExpectedString","","Expected a string, got something else",0,null],[13,"UnexpectedEOF","","end-of-file reached before json was complete",0,null],[13,"UnexpectedCharacter","","bad character encountered when parsing some data",0,null],[13,"MalformedNumber","","a number contained a bad or misplaced character",0,null],[13,"MalformedEscape","","an escape sequence was invalid",0,null],[13,"UnknownIdent","","an identifier was given that has no meaning",0,null],[13,"Unicode","","a unicode codepoint constant was malformed",0,null],[13,"Utf16","","a series of codepoints could not be parsed as utf16",0,null],[13,"Io","","some sort of IO error",0,null],[11,"fmt","","",0,null],[11,"from","","",0,{"inputs":[{"name":"parseinterror"}],"output":{"name":"errortype"}}],[11,"from","","",0,{"inputs":[{"name":"cow"}],"output":{"name":"errortype"}}],[11,"from","","",0,{"inputs":[{"name":"error"}],"output":{"name":"errortype"}}],[11,"fmt","","",1,null],[11,"fmt","","",1,null],[11,"cause","","",1,null],[11,"description","","",1,null],[11,"new","","Construct a new parser, given a byte iterator as input",2,{"inputs":[{"name":"i"}],"output":{"name":"parser"}}],[11,"parse","","Consume the internal iterator and produce a Json object",2,null],[0,"serializer","strason","# Serialization support",null,null],[5,"serialize","strason::serializer","The main serialization function",null,{"inputs":[{"name":"json"},{"name":"w"}],"output":{"name":"result"}}],[11,"fmt","strason","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"clone","","",3,null],[11,"from_iter","","Construct a Json object by parsing a byte iterator, e.g. from a Reader",3,{"inputs":[{"name":"i"}],"output":{"name":"result"}}],[11,"from_str","","Construct a Json object by parsing a string",3,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"from_reader","","Construct a Json object from a reader",3,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[11,"null","","Returns a null, if this is a null",3,null],[11,"bool","","Returns the value, if this is a boolean",3,null],[11,"num","","Returns the value, if this is a number",3,null],[11,"string","","Returns the value, if this is a string",3,null],[11,"array","","Returns the value, if this is an array",3,null],[11,"object","","Returns the value, if this is an object",3,null],[11,"len","","Return the number of subobjects this object represents\n(so a count for Arrays and Objects). NOT a string length.",3,null],[11,"is_empty","","Return whether the object is empty, if it is a collection",3,null],[11,"write_to","","Reserialize the object into a writer",3,null],[11,"to_bytes","","Reserialize the object to byte array",3,null],[11,"index","","",3,null],[11,"index","","",3,null],[11,"index","","",3,null],[11,"index","","",3,null],[11,"index","","",3,null],[11,"index","","",3,null]],"paths":[[4,"ErrorType"],[3,"Error"],[3,"Parser"],[3,"Json"]]}; initSearch(searchIndex);