Added trim() to json_decode call

Change-Id: I7c12e0892a9c38fb1fd8532717252839848cdbec