package org.jeecg.modules.demo.word.controller;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.google.gson.JsonObject;
import org.jeecg.modules.demo.word.entily.Institutional;
import org.jeecg.modules.demo.word.entily.JsonResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("/text")
public class InstitutionalController {
@RequestMapping("/receive")
public String add(@RequestBody String word){
//多层嵌套 传过来的是json字符串 所以转换成jsonObject对象下图中
//显示的是演示接收的json字符串 只需要get()key值 就可以获取对应的数据对象
JSONObject jsonObject = JSONObject.parseObject(word);
JSONObject exb = (JSONObject)js