Simple custom JSON serializer for Tlv values