Use FormatJson instead of json_encode/json_decode

Change-Id: Ie56e41bd72b695c7d4f40c0dcd6f055742fdd57a
Merge "Use FormatJson instead of json_encode/json_decode"