Update ContextEncoder.java

JSON support added but not implemented yet