Json 如何识别数据格式

Json 如何识别数据格式,json,xml,dataformat,Json,Xml,Dataformat,我有两种格式的相同类型的数据,但我不确定它们是哪种格式 数据格式1 { "ArraytionGroup": { "-xmlns:xsd": "http://www.w3.org/2001/XMLSchema", "-xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", "LocationGroup": [ { "Id": "6", "Uuid": "894055b6

我有两种格式的相同类型的数据,但我不确定它们是哪种格式

数据格式1

{
  "ArraytionGroup": {
    "-xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
    "-xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
    "LocationGroup": [
      {
        "Id": "6",
        "Uuid": "894055b6-971ecc0c7224",
        "Name": {
          "-xmlns": "http://www.air-watch.com/servicemodel/resources",
          "#text": "gtg"
        },
        "GroupId": { "-xmlns": "http://www.air-watch.com/servicemodel/resources" },
        "LocationGroupType": {
          "-xmlns": "http://www.air-watch.com/servicemodel/resources",
          "#text": "C"
        },
        "Country": {
          "-xmlns": "http://www.air-watch.com/servicemodel/resources",
          "#text": "s"
        },
        "Locale": {
          "-xmlns": "http://www.air-watch.com/servicemodel/resources",
          "#text": "kk"
        },
        "ParentLocationGroup": {
          "-xmlns": "http://www.air-watch.com/servicemodel/resources",
          "-uuid": "bdce439362",
          "#text": "70"
        },
        "CreatedOn": {
          "-xmlns": "http://www.air-watch.com/servicemodel/resources",
          "#text": "2/21/2018 3:08:55 PM"
        },
}
数据格式2

<?xml version="1.0" encoding="utf-8" ?>
<SarttGroupSe xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.air-watch.com/servicemodel/resources">
    <Page>0</Page>
    <PageSize>500</PageSize>
    <Total>61</Total>
    <LocationGroups>
        <Id xmlns="">655</Id>
        <Name>EDX</Name>
        <GroupId>DDDD</GroupId>
        <LocationGroupType>Container</LocationGroupType>
        <Country/>
        <Locale/>
        <Users>0</Users>
        <Admins>0</Admins>
        <Devices>0</Devices>
    </LocationGroups>
    <LocationGroups>
        <Id xmlns="">2</Id>
        <Name>EE</Name>
        <GroupId>New</GroupId>
        <LocationGroupType>C</LocationGroupType>
        <Country/>
        <Locale/>
        <Users>0</Users>
        <Admins>0</Admins>
        <Devices>0</Devices>
    </LocationGroups>
    <LocationGroups>
        <Id xmlns="">6</Id>
        <Name>RAC</Name>
        <LocationGroupType>Ciner</LocationGroupType>
        <Country/>
        <Locale/>
        <Users>0</Users>
        <Admins>0</Admins>
        <Devices>0</Devices>
    </LocationGroups>
</SarttGroupSe>

0
500
61
655
EDX
DDDD
容器
0
0
0
2.
EE
新的
C
0
0
0
6.
赛车类游戏
吉内尔
0
0
0

这些数据的格式有谁能帮我吗?

JSON对象被大括号{}包围着

JSON对象以键/值对的形式编写

键必须是字符串,值必须是有效的JSON数据类型(字符串、数字、对象、数组、布尔值或null)

示例
{“姓名”:“约翰”,“年龄”:30,“汽车”:空}
那么您的第一个示例是一个json对象 验证中的第一个示例

Element对象表示XML文档中的元素。元素可以包含属性、其他元素或文本。如果元素包含文本,则文本将在文本节点中表示

示例
2005
那么第二个示例是xml对象


请在

First-json-second中尝试第二个示例xml@pc_coder-如果你很确定的话。写下来作为答案。