#15 Json Encode function implemented.