Java tutorial
/* * Copyright 2000-2018 Vaadin Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.vaadin.shared; import java.io.Serializable; public class JsonConstants implements Serializable { public static final String VTYPE_CONNECTOR = "c"; public static final String VTYPE_BOOLEAN = "b"; public static final String VTYPE_DOUBLE = "d"; public static final String VTYPE_FLOAT = "f"; public static final String VTYPE_LONG = "l"; public static final String VTYPE_INTEGER = "i"; public static final String VTYPE_STRING = "s"; public static final String VTYPE_ARRAY = "a"; public static final String VTYPE_STRINGARRAY = "S"; public static final String VTYPE_MAP = "m"; public static final String VTYPE_LIST = "L"; public static final String VTYPE_SET = "q"; public static final String VTYPE_NULL = "n"; public static final String JSON_CONTENT_TYPE = "application/json; charset=UTF-8"; }