1<!-- * * * * * * * * AUTO-GENERATED FILE  * * * * * * * * -->
2<!-- Edit ./tools/generate_natvis/nlohmann_json.natvis.j2 -->
3<!-- * * * * * * * * AUTO-GENERATED FILE  * * * * * * * * -->
4<?xml version="1.0" encoding="utf-8"?>
5<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
6{% for ns in namespaces %}
7    <!-- Namespace {{ ns }} -->
8    <Type Name="{{ ns }}::basic_json&lt;*&gt;">
9        <DisplayString Condition="m_type == {{ ns }}::detail::value_t::null">null</DisplayString>
10        <DisplayString Condition="m_type == {{ ns }}::detail::value_t::object">{*(m_value.object)}</DisplayString>
11        <DisplayString Condition="m_type == {{ ns }}::detail::value_t::array">{*(m_value.array)}</DisplayString>
12        <DisplayString Condition="m_type == {{ ns }}::detail::value_t::string">{*(m_value.string)}</DisplayString>
13        <DisplayString Condition="m_type == {{ ns }}::detail::value_t::boolean">{m_value.boolean}</DisplayString>
14        <DisplayString Condition="m_type == {{ ns }}::detail::value_t::number_integer">{m_value.number_integer}</DisplayString>
15        <DisplayString Condition="m_type == {{ ns }}::detail::value_t::number_unsigned">{m_value.number_unsigned}</DisplayString>
16        <DisplayString Condition="m_type == {{ ns }}::detail::value_t::number_float">{m_value.number_float}</DisplayString>
17        <DisplayString Condition="m_type == {{ ns }}::detail::value_t::discarded">discarded</DisplayString>
18        <Expand>
19            <ExpandedItem Condition="m_type == {{ ns }}::detail::value_t::object">
20                *(m_value.object),view(simple)
21            </ExpandedItem>
22            <ExpandedItem Condition="m_type == {{ ns }}::detail::value_t::array">
23                *(m_value.array),view(simple)
24            </ExpandedItem>
25        </Expand>
26    </Type>
27
28    <!-- Skip the pair first/second members in the treeview while traversing a map.
29         Only works in VS 2015 Update 2 and beyond using the new visualization -->
30    <Type Name="std::pair&lt;*, {{ ns }}::basic_json&lt;*&gt;&gt;" IncludeView="MapHelper">
31        <DisplayString>{second}</DisplayString>
32        <Expand>
33            <ExpandedItem>second</ExpandedItem>
34        </Expand>
35    </Type>
36
37{% endfor %}
38</AutoVisualizer>
39