Added/removed more unit tests for json and fixed bug found in encode float.
Added unit tests for json decoding with different plain text targets, fixed bug.