json2pub function that can fail louder
initialize our bools