C# Class StatePrinting.OutputFormatters.JsonStyle

Formatting the tokens to a JSON style representation. In order to reduce clutter in the output, circular references are referenced by a path starting from the root object.
Inheritance: IOutputFormatter
ファイルを表示 Open project: kbilsted/StatePrinter

Public Methods

Method Description
JsonStyle ( Configuration configuration ) : System
Print ( List tokens ) : string

Private Methods

Method Description
CreatePathsFromReferences ( List tokens, System.Reference backreferences ) : string>.Dictionary
IsQuoted ( string s ) : bool
MakeFieldValue ( Token token, string value ) : string
MakeString ( List tokens, string>.Dictionary referencePaths ) : string
MakeStringFromToken ( List tokens, int pos, string>.Dictionary referencePaths, IndentingStringBuilder sb ) : int
OptionalComma ( List tokens, int position ) : string

produces an extra "," if needed

Method Details

JsonStyle() public method

public JsonStyle ( Configuration configuration ) : System
configuration StatePrinting.Configurations.Configuration
return System

Print() public method

public Print ( List tokens ) : string
tokens List
return string