Make JSON en/decoding to normal way

Edited by Andret2344