use luajson for both encoding and decoding in pipeline