Added JSON libraries + encoder, API extended