json - Truncating Data in Variables, cant get Full Data -
i new nativescript angular2 programming. want post large json data server. when create json format data, data becomes truncated. think reason size of holding variable.
//my code is:
let headers = new headers({ "content-type": "application/json" }); let options = new requestoptions({ headers: headers }); let body= { "id": "1002345", "weekday": [{ "item1" :" data1",//string "item2":" data2",//string "item3":" data3",//string "item4":" data4",//string "item5":" data5",//string "item6":" data6",//base64 string of image "item7":" data7"//base64 string of image }] };
when try print body data becomes truncated!! 1. variable can hold large data? 2. alternate method post large data? please me out.
//json format: {"id":"1002345","weekday":{"item1":"nil","item2":"nil","item3":"nil","item4":"nil","item5":0,"item6":"nil","item7":"nil"}}
//actual json data:
{"id":"1002345","weekday":{"item1":"nil","item2":"nil","item3":"nil","item4":"nil","item5":0,"item6":"ivborw0kggoaaaansuheugaaalgaaaescayaaaafpc2waaaaaxnsr0iars4c6qaaaalwsflzaaawjqaafiubsvik8aaaabxpre9uaaaaagaaaaaaaacwaaaakaaaajyaaacwaaaql/kerzoaabbjsurbvhgb7n0hrhrffqbgioiovaggba0gaqokycuycskcfwxgqfhsieyg1sqajuyuhqgcioaggtg7kcjfbytyeguiqagwookoibb0hh0l6/pm//+7b997u/d+k5zsvrlz5875iplpdu/oxw01jqabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqiecbagaabagqie
here item6 s part , item7 missing!
if "when try print body" mean output console.log() need aware on systems (including chrome, firefox, ie, nodejs) debug output console.log() truncated prevent going on reasonable length display.
unless have other reason believe variable has truncated, hasn't been.
Comments
Post a Comment