ExampleApp/src/com/altinn/apps/fisher/net/JSParser.java
/**
	 * This method is used to parse json text and converts into Java - JsonObj
	 * @param jsonObj
	 * @param typeObj
	 * @return
	 */
This method is used to parse json text and converts into Java - JsonObj
@param jsonObj
@param typeObj
@return
This method is used to parse json text and converts into Java - JsonObj @param jsonObj @param typeObj @return
public JsonObj parse(JSONObject jsonObj,  int typeObj) {
		JsonObj jnObj = null;
		switch(typeObj){
			case PARSE_TYPE_OBJ_MSG:
				jnObj = new MessageObj();			
				break;
			case PARSE_TYPE_OBJ_ORG:
				jnObj = new OrganisationObj();			
				break;
			case PARSE_TYPE_OBJ_EMMSG:
				jnObj = new MessagesEmbedded();			
				break;
		}
		jnObj = jnObj.parse(jsonObj);
		return jnObj;
	}
public JsonObj parse ( JSONObject jsonObj , int typeObj ) { JsonObj jnObj = null ; switch ( typeObj ) { case PARSE_TYPE_OBJ_MSG : jnObj = new MessageObj ( ) ; break ; case PARSE_TYPE_OBJ_ORG : jnObj = new OrganisationObj ( ) ; break ; case PARSE_TYPE_OBJ_EMMSG : jnObj = new MessagesEmbedded ( ) ; break ; } jnObj = jnObj . parse ( jsonObj ) ; return jnObj ; }
This method is used to parse json text and converts into Java - JsonObj
 @param jsonObj
 @param typeObj
 @return
This method is used to parse json text and converts into Java - JsonObj @param jsonObj @param typeObj @return