Skip to main content
Known Participant
June 15, 2023
Answered

Using Boost Json library with InDesign SDK

  • June 15, 2023
  • 3 replies
  • 588 views

Hi,

 

I would like to use Boost json library in our sdk plugin for InDesign. I understand that this library is not part of the default boost libraries shipped with InDesign.

 

So, I would like to know what is the recommended way of using Boost JSON library in our plugins and keeping the version in sync with each release of the SDK?

 

BTW, how can I tell which version of boost is being used a given version of the plugin sdk?

 

Thanks

This topic has been closed for replies.
Correct answer erinferinferinf

There's been some discussion about this in the InDesign Developers Prerelease recently:

 

We have managed to push out the boost upgrade(from 1.72 to 1.74) to the 18.5 release. 18.4 release will also be based on the old boost i.e. 1.72.

3 replies

Inspiring
July 13, 2023

Incase boost json not working. You may refer to other json parser.

try RapidJson for C++ -

https://rapidjson.org/

 

- Rahul Rastogi

InDependent Adobe InDesign C++ Plugin Developer

iZine Solutions

erinferinferinf
Adobe Employee
erinferinferinfCorrect answer
Adobe Employee
June 16, 2023

There's been some discussion about this in the InDesign Developers Prerelease recently:

 

We have managed to push out the boost upgrade(from 1.72 to 1.74) to the 18.5 release. 18.4 release will also be based on the old boost i.e. 1.72.

Community Expert
June 16, 2023
quote

BTW, how can I tell which version of boost is being used a given version of the plugin sdk?

By @asaxena

In the SDK if you traverse to the path

<SDK Base Path>/external/dva/third_party/boost_libraries/boost you can check the version.hpp this would give you the version of boost shipped with the SDK. For JSON parsing I see a folder at

<SDK Base Path>/external/dva/third_party/boost_libraries/boost/property_tree/json_parser

For JSON you could also look at something like the following, the best part about this is that it is a single header file to include in your project and you are all set to go.

https://github.com/nlohmann/json

-Manan

 

-Manan