fastJSON输出字符串是一个长行 [英] fastJSON output string is a long line
问题描述
我正在使用fastJSON来序列化一个小结构。
输出字符串有一个长行而不是
多行格式,我期待。
我期望的格式基本上把每个简单的
变量放在它自己的行上。 varname:varvalue
它会让人性化更友好。
有吗我错过了一个开关?
谢谢。
使用最新版本的fastJSON,截至2015年7月16日,
我刚刚从源代码重建。
在旧版VB.net项目上使用Visual Studio 2008.
fastJSON非常棒 - 易于使用,小巧,快速。
当前输出字符串:
{ $ types:{ xEasyNav.User + uShip_Type,xEasyNav,Version = 8.5.5675.16993,Culture = neutral,PublicKeyToken = null: 1}, $ type : 1, LineColor:16711680, LineWidth:2, SymbolColor:65535, symbolsize:36, DotColor:16711680, dotsize:2, cog_extension:0。 25 , cog_extension_min_speed:0, cog_extension_based_on_Time:false, cog_extension_interval:0。< span class =code-digit> 00416666666666667 , YesTo修复:false, FixInterval:0。 00208333333333333 , YesToDot:true, DotInterval:0。 000138888888888889 , AutoOpenNextChart:true, bFwd:0。 0246872942725477 , bAft:0。 0246872942725477 , bPort:0。 00658327847267939 , bStbd:0。 00658327847267939 , Reset_Renamed:25, TrackColor:65280 , TrackColor_Alternate:16711680, TrackSize:3, NextChartDistance :0。 2 , FillColor :12632256, Show_Dashed_Line_To_Mark:true, cog_Change:5, Rotate_To_Heading:false, Max_Chart_Ahead:false, moving_Map:false, Find_Best_Chart:true, Show_Rings:true , Ring_Radius:0。 75 , Ring_color:16711680, Ring_Size:2, Ring_Count :3, Always_Plot_Track:false, River_Mode:false, Track_By_Distance:false, Track_Distance:0, Track_Distance_Units:0}
type
: 1, LineColor:16711680, LineWidth:2, SymbolColor:65535, symbolsize:36, DotColor:16711680, dotsize:2, cog_extension :0. 25 , cog_extension_min_speed:0, cog_extension_based_on_Time:false, cog_extension_interval:0。 00416666666666667 , YesToFix:false, FixInterval :0。 00208333333333333 , YesToDot :true, DotInterval:0。 000138888888888889 , AutoOpenNextChart:true, bFwd:0。 0246872942725477 , bAft:0。 0246872942725477 , bPort:0。 00658327847267939 , bStbd:0。 00658327847267939 , Reset_Renamed:25, TrackColor:65280, TrackColor_Alternate:16711680, TrackSize:3, NextChartDistance:0。 2 , FillColor:12632256, Show_Dashed_Line_To_Mark:true, cog_Change:5 , Rotate_To_Heading:false, Max_Chart_Ahead:false, moving_Map :false, Find_Best_Chart:true, Show_Rings:true, Ring_Radius:0。 75 , Ring_color:16711680, Ring_Size:2, Ring_Count:3, Always_Plot_Track:false, River_Mode:false, Track_By_Distance:false, Track_Distance:0, Track_Distance_Units:0}
在这篇文章 [ ^ ]。
I am using fastJSON to serialize a small structure.
The output string has one long line rather than the
multi-line format that I was expecting.
The format I expected essentially puts every simple
variable on its own line. "varname": varvalue
It would just make it much more human readable friendly.
Is there a switch that I'm missing?
Thanks.
Using latest version of fastJSON, as of 16 Jul 2015,
that I just rebuilt from source.
Using Visual Studio 2008 on legacy VB.net project.
fastJSON is amazing - easy to use, small, fast.
current output string:
{"$types":{"xEasyNav.User+uShip_Type, xEasyNav, Version=8.5.5675.16993, Culture=neutral, PublicKeyToken=null":"1"},"$type":"1","LineColor":16711680,"LineWidth":2,"SymbolColor":65535,"symbolsize":36,"DotColor":16711680,"dotsize":2,"cog_extension":0.25,"cog_extension_min_speed":0,"cog_extension_based_on_Time":false,"cog_extension_interval":0.00416666666666667,"YesToFix":false,"FixInterval":0.00208333333333333,"YesToDot":true,"DotInterval":0.000138888888888889,"AutoOpenNextChart":true,"bFwd":0.0246872942725477,"bAft":0.0246872942725477,"bPort":0.00658327847267939,"bStbd":0.00658327847267939,"Reset_Renamed":25,"TrackColor":65280,"TrackColor_Alternate":16711680,"TrackSize":3,"NextChartDistance":0.2,"FillColor":12632256,"Show_Dashed_Line_To_Mark":true,"cog_Change":5,"Rotate_To_Heading":false,"Max_Chart_Ahead":false,"moving_Map":false,"Find_Best_Chart":true,"Show_Rings":true,"Ring_Radius":0.75,"Ring_color":16711680,"Ring_Size":2,"Ring_Count":3,"Always_Plot_Track":false,"River_Mode":false,"Track_By_Distance":false,"Track_Distance":0,"Track_Distance_Units":0}
types":{"xEasyNav.User+uShip_Type, xEasyNav, Version=8.5.5675.16993, Culture=neutral, PublicKeyToken=null":"1"},"
type":"1","LineColor":16711680,"LineWidth":2,"SymbolColor":65535,"symbolsize":36,"DotColor":16711680,"dotsize":2,"cog_extension":0.25,"cog_extension_min_speed":0,"cog_extension_based_on_Time":false,"cog_extension_interval":0.00416666666666667,"YesToFix":false,"FixInterval":0.00208333333333333,"YesToDot":true,"DotInterval":0.000138888888888889,"AutoOpenNextChart":true,"bFwd":0.0246872942725477,"bAft":0.0246872942725477,"bPort":0.00658327847267939,"bStbd":0.00658327847267939,"Reset_Renamed":25,"TrackColor":65280,"TrackColor_Alternate":16711680,"TrackSize":3,"NextChartDistance":0.2,"FillColor":12632256,"Show_Dashed_Line_To_Mark":true,"cog_Change":5,"Rotate_To_Heading":false,"Max_Chart_Ahead":false,"moving_Map":false,"Find_Best_Chart":true,"Show_Rings":true,"Ring_Radius":0.75,"Ring_color":16711680,"Ring_Size":2,"Ring_Count":3,"Always_Plot_Track":false,"River_Mode":false,"Track_By_Distance":false,"Track_Distance":0,"Track_Distance_Units":0}
Ask the guy who wrote it in the forum at the bottom of this article[^].
这篇关于fastJSON输出字符串是一个长行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!