add mw_json_encode and mw_json_decode functions (v 3.3.3)

Change-Id: I2e73a93ddb9d31a241dc3822bee571e4e59a8562