add conditionals for net40 build
add conditionals for net40 in Json